import getDate from '../../util/getDate';
export const historyColumns = [
    {
        title: '活动（培训）名称', key: 'activityId', render: (h, params) => {
            return h('div', {}, params.row.activity.name)
        }
    },
    {
        title: '创建时间', key: 'createtime', render: (h, params) => {
        return h('div', {}, getDate.getDate(params.row.createtime, 'date'))
    }
    },
    {
        title: '出发（培训）时间', key: 'departtime', render: (h, params) => {
        return h('div', {}, getDate.getDate(params.row.departtime, 'date'))
    }
    },
    {
        title: '订单状态', key: 'status', width: 85,
        render: (h, params) => {
            let texts = '';
            if (params.row.status == '10') {
                texts = "待付款"
            } else if (params.row.status == '11') {
                texts = "已付款"
            } else if (params.row.status == '12') {
                texts = "待出发"
            } else if (params.row.status == '13') {
                texts = "待评价"
            } else if (params.row.status == '14') {
                texts = "已评价"
            } else if (params.row.status == '20') {
                texts = "不需审核"
            } else if (params.row.status == '21') {
                texts = "待审核"
            } else if (params.row.status == '22') {
                texts = "已审核"
            }
            return h('div', {}, texts)
        }
    },
    {
        title: '是否签到', key: 'signstate',
        render: (h, params) => {
            let texts = (params.row.signstate == 2 ? '已签到':'未签到');
            return h('div', {}, texts)
        }
    }
];